<div id='sel-albums-images'>
		 <div class="division" style="height:300px; overflow:auto;">
			
					<{foreach from=$img item=imgItem key=imgid}>
					
						<div style="margin:2px 15px;float:left">  
						  <input type="checkbox" name="img[]" value="<{$imgid}>" <{if $imgid|in_array:$selImgs}>checked<{/if}> />
						<img src="<{$imgid|storager:'s'}>" width="62" height="62" />
						</div>
					
					<{/foreach}>
			
			</div>
        <div class='mainFoot' style='width:80px;height:40px;margin:0 auto;'>
        <div class="table-action">
			<{button label=$___b2c="保存"|t:'b2c'}>
		</div>
        </div>

		</div>

		<script>
		     $E('#sel-albums-images .btn').addEvent('click',function(){
			    var dialog=this.getParent('.dialog');
				var callback=dialog.retrieve('callback',$empty),checkitems=[];
				$('sel-albums-images').getElements('input').each(function(el){
					if(!!el.checked)checkitems.push(el.value);
				});
				callback(checkitems);
				dialog.retrieve('instance').close();
			 
			 });
		</script>